<div class="market" ng-init="init()">
  <div>
    <div class="drawer" ng-click="zhishu_show=!zhishu_show">
      <em ng-class="{actived:zhishu_show}"></em>
      <div>
        <span>指数</span>
        <span ng-click="$event.stopPropagation();go_top('zhishu','0')"></span>
      </div>
    </div>
    <div class="item" ng-if="!zhishu_show" ng-repeat="it in zhishu track by $index" ng-click="go_detail(it)">
      <div>
        <span ng-bind="it.stkinfo.name"></span>
        <span ng-bind="it.stkinfo.code"></span>
      </div>
      <span ng-bind="it.now.toFixed(2)" ng-class="{'global_color_red':it.now-it.close>0,'global_color_green':it.now-it.close<0,'global_color_gray':it.now-it.close==0}"></span>
      <span ng-bind="(it.dev_h*100).toFixed(2)+'%'" ng-class="{'global_color_red':it.now-it.close>0,'global_color_green':it.now-it.close<0,'global_color_gray':it.now-it.close==0}"></span>
    </div>
  </div>
  <div ng-repeat="item in paihang track by $index">
    <div class="drawer" ng-click="item.show_flag = !item.show_flag">
      <em ng-class="{actived:!item.show_flag}"></em>
      <div>
        <span ng-bind="item.type_name"></span>
        <span ng-click="$event.stopPropagation();go_top(item.top_type,item.top_sort)"></span>
      </div>
    </div>
    <div class="item" ng-repeat="it in item.data track by $index" ng-if="item.show_flag" ng-click="go_detail(it)">
      <div>
        <span ng-bind="it.stkinfo.name"></span>
        <span ng-bind="it.stkinfo.code"></span>
      </div>
      <span ng-bind="it.now.toFixed(2)" ng-class="{'global_color_red':it.now-it.close>0,'global_color_green':it.now-it.close<0,'global_color_gray':it.now-it.close==0}"></span>
      <span ng-bind="(it.dev_h*100).toFixed(2)+'%'" ng-if="item.type_name ==='涨幅榜'||item.type_name ==='跌幅榜'" ng-class="{'global_color_red':it.now-it.close>0,'global_color_green':it.now-it.close<0,'global_color_gray':it.now-it.close==0}"></span>
      <span ng-bind="(it.hsl*100).toFixed(2)+'%'" ng-if="item.type_name ==='换手率榜'"></span>
      <span ng-bind="it.lbv.toFixed(2)" ng-if="item.type_name ==='量比榜'"></span>
    </div>
  </div>
</div>